package top.codedance.iotp.iot.sdk.po.async;

import com.alibaba.fastjson.JSONObject;

import javax.xml.bind.DatatypeConverter;

public class WsComExecCommandParam extends JSONObject {
    public WsComExecCommandParam(String command){
        super.put("hex", false);
        super.put("command", command);
    }

    public WsComExecCommandParam(byte[] command){
        super.put("hex", true);
        super.put("command", DatatypeConverter.printHexBinary(command));
    }
}
